var t = getApp();

Page({
  data: {},
  input: function (t) {
    console.log(t.detail.value), this.setData({
      input: t.detail.value
    });
  },
  onLoad: function (options) {
    var that = this
    var z_content = options.z_content
    that.setData({
      z_content: z_content
    })
  },
  foot: function (a) {
    // var o = wx.getStorageSync("log") || "",
    //   e = this;
    // null == e.data.input ? wx.showModal({
    //   title: "提示",
    //   content: "请填写个人简介",
    //   success: function(t) {
    //     t.confirm ? console.log("用户点击确定") : t.cancel && console.log("用户点击取消");
    //   }
    // }) : wx.request({
    //   url: t.globalData.dic + e.data.url + o,
    //   data: {
    //     briefIntroduce: e.data.input || ""
    //   },
    //   method: "POST",
    //   header: {
    //     "Content-Type": "application/x-www-form-urlencoded"
    //   },
    //   success: function(t) {
    //     console.log(t), wx.navigateBack({
    //       delta: 1
    //     });
    //   }
    // });
    let introduce = wx.setStorageSync('introduce', introduce) || ''
    introduce = this.data.input;
    var pages = getCurrentPages();
    var prevPage = pages[pages.length - 2];
    prevPage.setData({
      introduce: introduce
    })
    wx.navigateBack({
      delta: 1
    });
  }
});